function checkNews(){
    var title=document.getElementById("newTitle").value
    var text=document.getElementById("newContent").value
    var titleErr=document.getElementById("titleErr");
    var textErr=document.getElementById("textErr");
    titleErr.innerHTML="";
    textErr.innerHTML="";
    var ret=true;
    if(title==''){
	titleErr.innerHTML="Insert at least 1 character";
	ret=false;
    }
    if(text==''){
	textErr.innerHTML="Insert at least 1 character";
	ret=false;
    }
    return ret;
}